-- GENERATED SPELL FOR [Putridius] --


function spell0_1850(pUnit, Event) --@Putrid Stench,Self--
pUnit:FullCastSpellOnTarget(12946,pUnit)
pUnit:RegisterEvent('Sorts_1850', 10342, 1)
end

function spell1_1850(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1850', 617, 1)
end

function Sorts_1850(pUnit, Event)
local choix_sorts_1850 = math.random(0, 1)
if choix_sorts_1850 == 0 then
pUnit:RegisterEvent('spell0_1850', 1, 1)
end
if choix_sorts_1850 == 1 then
pUnit:RegisterEvent('spell1_1850', 1, 1)
end
end

function mob1850_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1850', math.random(1500, 3000), 1)
end

function mob1850_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1850_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1850_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1850, 1, 'mob1850_Action')
RegisterUnitEvent(1850, 2, 'mob1850_Leave')
RegisterUnitEvent(1850, 3, 'mob1850_Kill')
RegisterUnitEvent(1850, 4, 'mob1850_Die')
